package behavioralPatterns.mediator;

public class Mediator extends AbstractMediator{

    public Mediator(AbstractColleague a, AbstractColleague b) {
        super(a, b);
    }

    @Override
    public void AaffectB() {
        this.B.setNumber(this.A.getNumber()*100);
    }

    @Override
    public void BaffectA() {
        this.A.setNumber(this.B.getNumber()/100);
    }
}
